class ElephantServiceController < ApplicationController
  skip_before_filter  :verify_authenticity_token

  def post_data

    respond_to do |format|
      format.json { render json: ElephantServiceHelper.post_data(params[:service_path],get_service_params) }
    end
  end

  def get_data

    respond_to do |format|
      format.json { render json: ElephantServiceHelper.get_data(params[:service_path],get_service_params) }
    end
  end

  def put_data

    respond_to do |format|
      format.json { render json: ElephantServiceHelper.put_data(params[:service_path],get_service_params) }
    end
  end

  def delete_data

    respond_to do |format|
      format.json { render json: ElephantServiceHelper.delete_data(params[:service_path],get_service_params) }
    end
  end

  def patch_data

    respond_to do |format|
      format.json { render json: ElephantServiceHelper.patch_data(params[:service_path],get_service_params) }
    end
  end

end